package core.sql.环境;

import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.sql.SparkSession;

public class Spark01_ENV {

    public static void main(String[] args) {
        SparkConf conf = new SparkConf()
                .setAppName("Spark01_HotTop10") // 应用名称
                .setMaster("local[*]"); // 替换成你的master地址
        SparkContext sparkContext = new SparkContext(conf);
        SparkSession sparkSession = new SparkSession(sparkContext);

        try {

        } finally {
            sparkSession.close();
        }
    }
}
